'use strict';

function router(app) {
  app.router.get('/wanProfile/:type', app.controller.onuDetails.getWanOrVoip);
  app.router.post('/wanProfile',app.controller.onuDetails.createOrUpdateWan);
  app.router.post('/voip',app.controller.onuDetails.createOrUpdateVOIP);
  app.router.delete('/wanProfile',app.controller.onuDetails.deteleWAN);
  app.router.delete('/deleteVoip',app.controller.onuDetails.deleteVoip);
  // app.router.get('/wanProfileRefresh/:type',app.controller.onuDetails.refreshWAN);
  app.router.get('/getEth',app.controller.onuDetails.getEth);
  app.router.post('/EthState',app.controller.onuDetails.updateEthState);
  app.router.get('/getCATV',app.controller.onuDetails.getCATV);
  // app.router.post('/setCATV',app.controller.onuDetails.setCATV);
  // app.router.post('/wanProfiledit/:type',app.controller.onuDetails.WANConfiguration);
}
module.exports = {
  router,
};
